Skip to content

Add YAML_CONFIG option to self-hosted documentation #445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 14, 2025
Merged

Conversation

hasit
Copy link
Contributor

@hasit hasit commented Jul 14, 2025

No description provided.

@hasit hasit self-assigned this Jul 14, 2025
Copy link
Contributor

coderabbitai bot commented Jul 14, 2025

Walkthrough

The documentation for self-hosted integrations of CodeRabbit on Azure DevOps, Bitbucket, GitHub, and GitLab was updated to introduce and explain a new optional environment variable, YAML_CONFIG. This variable enables deployment-level customization by allowing users to provide an escaped YAML configuration string. No code or procedural changes were made.

Changes

Files Change Summary
docs/self-hosted/azure-devops.md, docs/self-hosted/bitbucket.md, docs/self-hosted/github.md, docs/self-hosted/gitlab.md Added documentation for optional YAML_CONFIG env variable, usage instructions, format notes, and references to external escaping tools.

Poem

In docs we hop, a change appears,
YAML_CONFIG now calms your fears.
Escape your YAML, string it tight,
Customize CodeRabbit—deploy just right!
Across DevOps, Bitbucket, GitHub, and GitLab too,
This bunny’s guide brings clarity to you!
🐇✨

Impact Analysis

Documentation update: New YAML_CONFIG environment variable for self-hosted deployments

ℹ️ Low 🔄 Impacts behavior

The self-hosted setup documentation for Azure DevOps, Bitbucket, GitHub, and GitLab now describes a new optional environment variable, YAML_CONFIG, which allows users to customize CodeRabbit's behavior at the deployment level by providing a YAML configuration as an escaped string. This change informs users of a new configuration option and provides guidance on formatting and usage, but does not alter existing functionality.

Verify that users can successfully set the YAML_CONFIG variable as described and that the application correctly interprets the escaped YAML string. Test with various YAML configurations and edge cases to ensure robust handling.

🔍 Related Files
  • docs/self-hosted/azure-devops.md
  • docs/self-hosted/bitbucket.md
  • docs/self-hosted/github.md
  • docs/self-hosted/gitlab.md

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between df22dc6 and 76a3ad8.

📒 Files selected for processing (4)
  • docs/self-hosted/azure-devops.md (1 hunks)
  • docs/self-hosted/bitbucket.md (1 hunks)
  • docs/self-hosted/github.md (2 hunks)
  • docs/self-hosted/gitlab.md (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • docs/self-hosted/bitbucket.md
🚧 Files skipped from review as they are similar to previous changes (3)
  • docs/self-hosted/gitlab.md
  • docs/self-hosted/azure-devops.md
  • docs/self-hosted/github.md
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch hasit/yaml-config

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

cloudflare-workers-and-pages bot commented Jul 14, 2025

Deploying coderabbit-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 76a3ad8
Status: ✅  Deploy successful!
Preview URL: https://f17b5f6f.coderabbit-docs.pages.dev
Branch Preview URL: https://hasit-yaml-config.coderabbit-docs.pages.dev

View logs

@hasit
Copy link
Contributor Author

hasit commented Jul 14, 2025

@coderabbitai full review

Copy link
Contributor

coderabbitai bot commented Jul 14, 2025

✅ Actions performed

Full review triggered.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (8)
docs/self-hosted/bitbucket.md (2)

125-127: Quote the value to prevent .env parsing surprises

Without surrounding quotes, a value containing \n will be split across lines when the shell reads the file, breaking the variable entirely.

-YAML_CONFIG=[<yaml-config>]
+YAML_CONFIG="<escaped-yaml-config>"

134-135: Drop the .md suffix in internal links

Docusaurus resolves /docs/... routes without needing the file-extension. Keeping the raw .md in links can 404 after the site is built.

-[CodeRabbit YAML configuration](/docs/getting-started/configure-coderabbit.md)
+[CodeRabbit YAML configuration](/docs/getting-started/configure-coderabbit)
docs/self-hosted/azure-devops.md (2)

130-132: Wrap the YAML string in quotes

Same quoting caveat as the Bitbucket page – .env will mis-interpret unquoted \n.

-YAML_CONFIG=[<yaml-config>]
+YAML_CONFIG="<escaped-yaml-config>"

139-140: Remove .md from the reference link

Keep internal links extension-less for Docusaurus routing.

-[CodeRabbit YAML configuration](/docs/getting-started/configure-coderabbit.md)
+[CodeRabbit YAML configuration](/docs/getting-started/configure-coderabbit)
docs/self-hosted/gitlab.md (2)

137-139: Quote the placeholder

-YAML_CONFIG=[<yaml-config>]
+YAML_CONFIG="<escaped-yaml-config>"

146-147: Use extension-less link

-[CodeRabbit YAML configuration](/docs/getting-started/configure-coderabbit.md)
+[CodeRabbit YAML configuration](/docs/getting-started/configure-coderabbit)
docs/self-hosted/github.md (2)

143-145: Add quotes so newlines stay inside the variable

-YAML_CONFIG=[<yaml-config>]
+YAML_CONFIG="<escaped-yaml-config>"

155-156: Internal link: drop the .md

-[CodeRabbit YAML configuration](/docs/getting-started/configure-coderabbit.md)
+[CodeRabbit YAML configuration](/docs/getting-started/configure-coderabbit)
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2395b7d and df22dc6.

📒 Files selected for processing (4)
  • docs/self-hosted/azure-devops.md (1 hunks)
  • docs/self-hosted/bitbucket.md (1 hunks)
  • docs/self-hosted/github.md (2 hunks)
  • docs/self-hosted/gitlab.md (1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: alexcoderabbitai
PR: coderabbitai/coderabbit-docs#0
File: :0-0
Timestamp: 2025-06-02T14:07:49.512Z
Learning: For files in docs/tools/*.md directory: Do not recommend installation instructions or usage setup steps. All tools documented in this directory are pre-installed in CodeRabbit's default environment and require no installation steps from users. Documentation should focus on tool capabilities and features only.
docs/self-hosted/azure-devops.md (1)
Learnt from: alexcoderabbitai
PR: coderabbitai/coderabbit-docs#0
File: :0-0
Timestamp: 2025-06-02T14:07:49.512Z
Learning: For files in docs/tools/*.md directory: Do not recommend installation instructions or usage setup steps. All tools documented in this directory are pre-installed in CodeRabbit's default environment and require no installation steps from users. Documentation should focus on tool capabilities and features only.
docs/self-hosted/gitlab.md (2)
Learnt from: alexcoderabbitai
PR: coderabbitai/coderabbit-docs#0
File: :0-0
Timestamp: 2025-06-02T14:07:49.512Z
Learning: For files in docs/tools/*.md directory: Do not recommend installation instructions or usage setup steps. All tools documented in this directory are pre-installed in CodeRabbit's default environment and require no installation steps from users. Documentation should focus on tool capabilities and features only.
Learnt from: alexcoderabbitai
PR: coderabbitai/coderabbit-docs#176
File: docs/self-hosted/bitbucket.md:37-37
Timestamp: 2024-12-13T15:10:43.483Z
Learning: In the `docs` repository, it's acceptable to use `127.0.0.1` in documentation examples, and CodeRabbit should not flag it as an issue.
docs/self-hosted/github.md (2)
Learnt from: alexcoderabbitai
PR: coderabbitai/coderabbit-docs#0
File: :0-0
Timestamp: 2025-06-02T14:07:49.512Z
Learning: For files in docs/tools/*.md directory: Do not recommend installation instructions or usage setup steps. All tools documented in this directory are pre-installed in CodeRabbit's default environment and require no installation steps from users. Documentation should focus on tool capabilities and features only.
Learnt from: alexcoderabbitai
PR: coderabbitai/coderabbit-docs#176
File: docs/self-hosted/bitbucket.md:37-37
Timestamp: 2024-12-13T15:10:43.483Z
Learning: In the `docs` repository, it's acceptable to use `127.0.0.1` in documentation examples, and CodeRabbit should not flag it as an issue.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Cloudflare Pages

…entation for Azure DevOps, Bitbucket, GitHub, and GitLab
@hasit hasit merged commit 5aa268e into main Jul 14, 2025
4 checks passed
@hasit hasit deleted the hasit/yaml-config branch July 14, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant